package com.zyf.mapper;

import com.zyf.pojo.Userinfo;
import org.apache.ibatis.annotations.Select;

public interface UserInfoMapper {

    @Select("select * from userinfo where username=#{username} and  userpwd=#{userpwd}")
    public Userinfo login(Userinfo userinfo);

    @Select("select * from userinfo where  userid=#{userid}")
    public Userinfo findOne(Integer userid);
}
